CXXFLAGS =	-O2 -g 
CFLAGS = $(CXXFLAGS)
DEFS    = -DTRACE 
##  svn checkout http://leveldb.googlecode.com/svn/trunk/ leveldb-read-only
## make 
## Path del directorio del leveldb 
#LEVELDB = /home/cristian/levelDB/leveldb-read-only
INCDIR  = ./include
LDFLAGS	= 
DESTDIR	= ../bin/hal
LIBS	=  -lpthread
#LIBS	=  -L$(LEVELDB) -lleveldb -lpthread

OBJ	= Hal.o  Sched.o Logger.o  Worker.o Nodo.o AmbienteWorker.o AmbienteAbstract.o Data.o

all: hal

hal: $(OBJ)
	@echo
	@echo "Compiling Hal"
	@echo "================"
	$(CXX) $(CXXFLAGS)  $(DEFS) -I$(INCDIR)  -o $@ $(OBJ) $(LIBS)
.cpp.o:
	$(CXX) -c $(CFLAGS) $(DEFS) -I$(INCDIR)   $< $(LIBS)

clean:
	rm -rf *.o
	rm -rf ../bin/hal
	rm -rf hal